<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html:html lang="true">
<head>
	<html:base />

	<title>login.jsp</title>

	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
	<meta http-equiv="description" content="This is my page" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/base_orange.css" />
	
</head>

<body>
	<logic:notEmpty name="userForm" scope="session">
		<%
			String jump = request.getParameter("jump");
			if(jump==null||jump.equals("")||jump.equals("true")){
				response.getWriter().println("正在转入后台管理系统……");
				response.sendRedirect(request.getContextPath() + "/admin/core/index/index.jsp");
			}
		%>
	</logic:notEmpty>
	<html:form action="/login.do?method=login">
		<table class="table1" style="width:30%;margin-top:15%;">
			<tr>
				<td colspan="2">
					<h3>佩华花艺学校-网站后台管理系统</h3>
					<html:messages id="errors" message="true">
						<bean:write name="errors" filter="false" />
					</html:messages>
				</td>
			</tr>
			<tr>
				<td>
					用户名:
				</td>
				<td>
					<html:text property="userName" style="width:150px;" />
				</td>
			</tr>
			<tr>
				<td>
					密&nbsp;&nbsp;&nbsp;&nbsp;码:
				</td>
				<td>
					<html:password property="password" style="width:150px;" />
				</td>
			</tr>
			<tr>
				<td>验证码：</td>
				<td><input type="text" name="kaptchafield" /></td>
			</tr>
			<tr>
				<td></td>
				<td><img src="<%=request.getContextPath()%>/kaptcha" height="40" width="150" /></td>
			</tr>
			<tr>
				<td>
					&nbsp;
				</td>
				<td>
					<input type="submit" class="button_2zi" value="登 录" />
				</td>
			</tr>
		</table>
	</html:form>
</body>
</html:html>
